package org.example.netty.handler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelOutboundHandlerAdapter;
import io.netty.channel.ChannelPromise;
import org.example.utils.LogUtils;

public class ProtobufBusinessOutHandler extends ChannelOutboundHandlerAdapter {
    @Override
    public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
        LogUtils.info("write出战处理 :" + Thread.currentThread().getName());
    }

    @Override
    public void flush(ChannelHandlerContext ctx) throws Exception {
        LogUtils.info("出战处理flush ：" + Thread.currentThread().getName());
    }
}
